% fromto synaptic matrix can be sparse.
% 
% Example:
% read_synapses
% visualize_som(syn_final(V1p23,M1p5_L56_));
%function hinton_area_synapses(fromto) 
function hinton_area_synapses(fromto) 

fromto=full(fromto);
rows = round(sqrt(size(fromto,1)));
cols = round(sqrt(size(fromto,1)));
visualize_som(fromto,rows,cols,false);
colorbar
